package cn.ts.today_school.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    NOT_LOGIN(10100, "未登录"),
    LOGIN_SUCCESS(10101, "登录成功"),
    PASSWORD_ERROR(10102, "密码错误"),
    USERNAME_ERROR(10103, "用户名错误"),
    USERNAME_ALREADY_EXISTS(10104, "用户名被占用"),
    EMAIL_ALREADY_EXISTS(10104, "邮箱被占用"),
    OPERATION_SUCCESS(10106, "操作成功"),
    OPERATION_FAILED(101007, "操作失败");
    //内部状态码,提示消息

    private Integer code;
    private String msg;
}
